﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GCELibrary.Current;

namespace ZF.WS.UserControls
{
    public partial class AirHtml : System.Web.UI.UserControl
    {
        protected Guid _guid = Guid.NewGuid();


        private string _Text = null;
        public string Text {
            get
            {
                if (_Text == null)
                {
                    var objSession = ViewState[this.ID + "_Text"];
                    if (objSession == null)
                        _Text = null;
                    else
                        _Text = objSession.ToString();
                }
                return _Text;
            }

            set
            {
                ViewState[this.ID + "_Text"] = value;
                _Text = value;
                HttpSession.SetSession(_guid.ToString(), value);
            }
        }



        public bool AutoWidth { get; set; }
        public bool AutoHeight { get; set; }
        public string Config { get; set; }
        public string Style { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    }
}